<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function jsopP(url) {
				return new Promise((resolve, rejuct) => {
					callback = resolve;
					let dom = document.createElement('script');
					dom.src = `${url}?callback=callback`;
					document.body.appendChild(dom);
				})
			}


			let url = "http://localhost:8081";
			jsopP(url).then(function(res) {
				console.log(res);
			})
		</script>
	</body>
</html>
